<?php
namespace app\admin\controller;
use think\View;

/**
 * User: wuwenhan
 * Date: 2016/4/12
 * Time: 11:27
 */

class System extends Base
{
    public function index()
    {

        return $this->view->fetch();
    }
    public function safe()
    {

        return $this->view->fetch();
    }

    /**
     * 清除缓存
     * @return
     */
    public function clear_cache()
    {
        if(\think\Cache::clear())
            return $this->success('清除缓存成功'); 
        else
            return $this->error('清除缓存失败');
    }
}
